/*
 * @Date: 2024-06-30 20:59:48
 * @LastEditors: wkl
 * @LastEditTime: 2024-07-09 13:14:26
 * @FilePath: /keep-nest/src/main.ts
 */
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { join } from 'path';
async function bootstrap() {
  const app: any = await NestFactory.create(AppModule, {
    logger: ['error', 'warn'],
  });

  const path = join(__dirname).replace('/dist', '') + '/static';
  app.useStaticAssets(path, {
    prefix: '/static',
  });
  app.enableCors();
  await app.listen(80);
  console.log(80);
}
bootstrap();
